import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import './plugins'
import plugins2 from './plugins2' // plugins2
import '@/layouts/export'
/**
 * @author https://vue-admin-beautiful.com （不想保留author可删除）
 * @description 生产环境默认都使用mock，如果正式用于生产环境时，记得去掉
 */

// if (process.env.NODE_ENV === 'production') {
//   const { mockXHR } = require('@/utils/static')
//   mockXHR()
// }

import DateFormat from '@/components/DateFormat'
// 文件上传组件
import FileUpload from "@/components/FileUpload"
// 图片上传组件
import ImageUpload from "@/components/ImageUpload"
// 图片上传组件 单个
import ImageUploadOne from "@/components/ImageUploadOne"
//Dplayer
import Dplayer from "@/components/Dplayer";
//Hikplayer
import HikPlayer from "@/components/HikPlayer";
//定制的全局组件
Vue.component("DateFormat", DateFormat)
Vue.component('FileUpload', FileUpload)
Vue.component('ImageUpload', ImageUpload)
Vue.component('ImageUploadOne', ImageUploadOne)
Vue.component('Dplayer', Dplayer)
Vue.component('HikPlayer', HikPlayer)

Vue.use(plugins2) //自己的插件

Vue.config.productionTip = false
Vue.prototype.$EventBus = new Vue()

new Vue({
  el: '#vue-admin-beautiful',
  router,
  store,
  render: (h) => h(App),
})
